:root {
  --white: #ffffff;
  --light-blue: #e3f2fd;
  --blue-100: #bbdefb;
  --blue-200: #90caf9;
  --blue-300: #64b5f6;
  --blue-400: #42a5f5;
  --blue-500: #2196f3;
  --black: #212121;
  --grey-100: #f5f5f5;
  --grey-200: #eeeeee;
  --grey-300: #e0e0e0;
  --grey-400: #bdbdbd;
  --grey-500: #9e9e9e;
  --error-red: #ff3333;
  --success-green: #4caf50;
  --warning-orange: #ff9800;
  --accent-teal: #009688;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--light-blue);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--blue-200);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.loading-subtext {
  color: var(--grey-500);
}

.header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--black);
  font-size: 1.5rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--black);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
}

.nav a:hover,
.nav a.active {
  background-color: var(--light-blue);
  transform: translateY(-2px);
}

.main-content {
  flex: 1;
  padding: 80px 20px 40px;
  margin: 72px auto 2rem;
  max-width: 1200px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 280px);
}

.form-container {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 440px;
  transition: transform 0.3s ease;
}

.form-container:hover {
  transform: translateY(-4px);
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--blue-500);
  font-size: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--blue-300);
  border-radius: 2px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.inputForm {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--grey-500);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: var(--blue-500);
}

.eye-icon {
  width: 20px;
  height: 20px;
  color: currentColor;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--grey-500);
  font-weight: 500;
}

input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--grey-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--white);
}

input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

input:hover {
  border-color: var(--blue-200);
}

input:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--grey-300);
  border-radius: 4px;
  cursor: pointer;
  margin-top: 3px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.checkbox-group a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

.checkbox-group a:hover {
  color: var(--blue-400);
}

.error-message {
  color: var(--error-red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  padding-left: 0.5rem;
  border-left: 3px solid var(--error-red);
}

.message {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--grey-100);
  color: var(--grey-500);
  font-weight: 500;
}

button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background-color: var(--blue-500);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

button[type="submit"]:hover {
  background-color: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

button[type="submit"]:disabled {
  background-color: var(--grey-300);
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.submitting {
  position: relative;
}

.signup-link,
.login-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--grey-500);
}

.signup-link a,
.login-link a {
  color: var(--blue-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.signup-link a:hover,
.login-link a:hover {
  color: var(--blue-400);
}

.footer {
  background-color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section h3 {
  color: var(--black);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--blue-400);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-200);
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .container {
    padding: 1rem;
  }

  .form-container {
    padding: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 0.5rem;
  }

  .nav a {
    padding: 0.5rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  input {
    padding: 0.75rem;
  }

  button[type="submit"] {
    padding: 0.875rem;
  }
}


.form-group {
  margin-bottom: 1.5rem;
}

.dropdown-single {
  position: relative;
  width: 100%;
}

.dropdown-btn {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--white);
  border: 2px solid var(--grey-200);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-btn::after {
  content: '';
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--grey-500);
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown-btn:hover {
  border-color: var(--blue-200);
}

.dropdown-btn:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.dropdown-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 50;
  max-height: 250px;
  overflow-y: auto;
  border: 2px solid var(--grey-200);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-option {
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--black);
}

.dropdown-option:hover {
  background-color: var(--light-blue);
  color: var(--blue-500);
}

.error-message {
  color: var(--error-red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  padding-left: 0.5rem;
  border-left: 3px solid var(--error-red);
}